package com.ethink.order.api.model;

import com.ethink.order.api.info.TobSaleOrderInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 辉辉 2023/1/3 10:52
 */
@Data
public class TobSaleOrderGoodsModeModel extends TobSaleOrderInfo {

    @Schema(description = "渠道")
    private String saleSubChannel;

    @Schema(description = "商品编码")
    private String mateSku;

    @Schema(description = "商品名称")
    private String mateSkuName;

    @Schema(description = "采购批次")
    private String purchaseCode;

    @Schema(description = "库存类型")
    private Integer inventoryType;

    @Schema(description = "数量")
    private Integer qty;

    @Schema(description = "结算数量")
    private Integer settleQty;

    @Schema(description = "退货入库数量")
    private Integer returnQty;

    @Schema(description = "未结数量")
    private Integer differenceQuantity;

    @Schema(description = "销售价")
    private BigDecimal salePrice;

    @Schema(description = "成本价")
    private BigDecimal costPrice;

    @Schema(description = "毛利率")
    private BigDecimal grossProfitRate;

    @Schema(description = "规格")
    private String productSpecification;

    @Schema(description = "品牌")
    private String brandName;

    @Schema(description = "单位")
    private String unitName;

    @Schema(description = "生产批次")
    private String produceCode;

    @Schema(description = "备注")
    private String remark;

    @Schema(description ="入库时间")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date rkTime;

    @Schema(description = "在仓库龄")
    private Integer inventoryAge;

    @Schema(description = "出库时间")
    private Date outboundTime;

    @Schema(description ="商品生产日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date productDate;

    @Schema(description ="商品过期日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date expireDate;

}
